$mainColor: #2f80e2;
$transitionTime: 0.5s;

// 登录盒子样式
.login-box {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: calc(450px - 48px);
    height: calc(600px - 48px);
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    z-index: 2;

    // 登录盒子顶部
    .login-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: absolute;
        top: 24px;
        width: calc(100% - 48px);

        // 登录标题样式
        .login-title {
            font-weight: 100;
            font-size: 32px;
            color: black;
            margin: 0;
        }

        // 关闭按钮样式
        .close {
            font-size: 32px;
            width: 32px;
            height: 32px;
            line-height: 32px;
            padding: 0;
            border: none;
            background-color: transparent;
            transition: opacity $transitionTime;
            cursor: pointer;

            &:hover {
                opacity: 0.5;
            }
        }
    }

    // 登录表单样式
    .login-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding-top: 100px;

        :nth-child(n) {
            margin-bottom: 16px;
        }

        // 标题样式
        .login-title {
            font-weight: 100;
            font-size: 24px;
        }

        // 输入框样式
        input {
            width: calc(100% - 40px);
            height: 50px;
            padding: 0px 20px;
            color: black;
            font-size: 20px;
            background-color: #ededed;
            border: 1px solid rgba($color: #FFF, $alpha: 0);
            border-radius: 6px;
            transition: border $transitionTime;

            &:focus {
                border: 1px solid $mainColor;
            }
        }

        // 登录按钮样式
        .login-button {
            padding: 0;
            width: 100%;
            color: white;
            background-color: $mainColor;
            border: 1px solid $mainColor;
            cursor: pointer;
            transition: opacity $transitionTime;

            &:hover {
                opacity: 0.8;
            }
        }

        // 分隔条样式
        .divider {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin: 20px 0;
            text-align: center;

            // 分隔条样式
            .line {
                display: inline-block;
                max-width: 45%;
                width: 45%;
                flex: 1;
                height: 1px;
                background-color: rgb(201, 202, 209);
            }

            // 分隔条文本 
            .divider-text {
                display: inline-block;
                width: 50px;
                vertical-align: middle;
                margin: 0px 20px;
                line-height: 0px;
                color: rgb(201, 202, 209);
            }
        }

        // 其他登录样式
        .another-login {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 32px;

            .another-link {

                a {
                    display: inline-block;
                    width: 48px;
                    height: 48px;
                    border-radius: 50%;
                    overflow: hidden;
                    margin: 0px 12px;

                    img {
                        width: 100%;
                        height: 100%;
                    }
                }
            }
        }
    }
}